package org.example.entity;

import org.example.Component;

import java.util.List;

public class Member extends Component {

    private String name;

    @Override
    public void share(String thing) {
        System.out.println(this.name + "收到了"+thing);
    }

    public Member() {
    }
    public Member(String name) {
        this.name = name;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
